<template>
	<!--供应商and客户销售and采购汇总-->
	<view class="wrapper" :style="{height:wrapperHeight +'px'}">
		<!--<view class="title-padding"></view>-->
		<!-- <view class="headerGd">
			<view class="header">
				<button class="back" @tap="back()"></button>
				{{OrderTitle}}
				<button class="filter" @tap="filter()"></button>
			</view>
		</view> -->
		<view class="container" :style="{height: containerHeight + 'px'}">
			<view class="curstom">
				<!-- <view class="changeList" >

				</view>
				<view class="cuIcon-calendar" @tap="changeWidth()"></view> -->
				<view class="filterTime">
				{{isClient?'当前客户':'当前供应商'}}:{{curstomName}}
				</view>
				<view class="filterTime">
					<text>从{{startTime}}</text>
					<text>至{{endTime}}</text>
				</view>
			</view>
			<view class="orderList" :style="{height: orderListHeight + 'px' }" v-show="isList">
				<view class="orderNav" :style="{width:tdAllWidth+'px'}" @tap="changeWidth">
					<!-- <text :style="{width:tdWidth[index]+'px'}">
						{{item.name}}
					</text> -->
					<text :style="{width:tdWidth[0]+'px'}">
						序号
					</text>
					<text :style="{width:tdWidth[1]+'px'}">
						{{isClient?'客户':'供应商'}}编码
					</text>
					<text :style="{width:tdWidth[2]+'px'}">
						{{isClient?'客户':'供应商'}}
					</text>
					<text :style="{width:tdWidth[3]+'px'}" @tap.stop.prevent="paixu1(1)">
						{{isClient?"出库数量":"进货数量"}}
						<label class="text-blue text-xl" :class="paixu01 ?'cuIcon-triangledownfill':'cuIcon-triangleupfill'"></label>
					</text>
					<text :style="{width:tdWidth[4]+'px'}" @tap.stop.prevent="paixu1(2)">
						{{isClient?"出库金额":"进货金额"}}
						<label class="text-blue text-xl" :class="paixu02 ?'cuIcon-triangledownfill':'cuIcon-triangleupfill'"></label>
					</text>
					<text :style="{width:tdWidth[5]+'px'}" @tap.stop.prevent="paixu1(3)">
						退货数量
						<label class="text-blue text-xl" :class="paixu03 ?'cuIcon-triangledownfill':'cuIcon-triangleupfill'"></label>
					</text>
					<text :style="{width:tdWidth[6]+'px'}" @tap.stop.prevent="paixu1(4)">
						退货金额
						<label class="text-blue text-xl" :class="paixu04 ?'cuIcon-triangledownfill':'cuIcon-triangleupfill'"></label>
					</text>
					<text :style="{width:tdWidth[7]+'px'}" @tap.stop.prevent="paixu1(5)">
						差异数量
						<label class="text-blue text-xl" :class="paixu05 ?'cuIcon-triangledownfill':'cuIcon-triangleupfill'"></label>
					</text>
					<text :style="{width:tdWidth[8]+'px'}" @tap.stop.prevent="paixu1(6)">
						差异金额
						<label class="text-blue text-xl" :class="paixu06 ?'cuIcon-triangledownfill':'cuIcon-triangleupfill'"></label>
					</text>
					<text :style="{width:tdWidth[9]+'px'}" @tap.stop.prevent="paixu1(7)">
						{{isClient?"销售数(未审)":"进货数(未审)"}}
						<label class="text-blue text-xl" :class="paixu07 ?'cuIcon-triangledownfill':'cuIcon-triangleupfill'"></label>
					</text>
					<text :style="{width:tdWidth[10]+'px'}" @tap.stop.prevent="paixu1(8)">
						退货数(未审)
						<label class="text-blue text-xl" :class="paixu08 ?'cuIcon-triangledownfill':'cuIcon-triangleupfill'"></label>
					</text>
				</view>
				<view class="orderLi" :style="{height:orderLiHeight +'px',width:tdAllWidth+'px'}">
					<view class="orderItem" v-for="(item,index) in orderList" :key="index">
						<text :style="{width:tdWidth[0]+'px'}">
							{{index+1}}
						</text>
						<text :style="{width:tdWidth[1]+'px'}">
							{{item.ClientCode}}
						</text>
						<text :style="{width:tdWidth[2]+'px'}">
							{{item.ClientName}}
						</text>
						<text :style="{width:tdWidth[3]+'px'}">
							{{item.real_qty}}
						</text>
						<text :style="{width:tdWidth[4]+'px'}">
							{{item.real_Amount}}
						</text>
						<text :style="{width:tdWidth[5]+'px'}">
							{{item.return_qty}}
						</text>
						<text :style="{width:tdWidth[6]+'px'}">
							{{item.return_Amount}}
						</text>
						<text :style="{width:tdWidth[7]+'px'}">
							{{item.Qty}}
						</text>
						<text :style="{width:tdWidth[8]+'px'}">
							{{item.Amount}}
						</text>
						<text :style="{width:tdWidth[9]+'px'}">
							{{item.real_qty2}}
						</text>
						<text :style="{width:tdWidth[10]+'px'}">
							{{item.return_qty2}}
						</text>
					</view>
				</view>
				<view class="allPrice" :style="{width:tdAllWidth+'px'}">
					<text :style="{width:tdWidth[0]+'px'}">
						小计
					</text><text :style="{width:tdWidth[1]+'px'}">

					</text><text :style="{width:tdWidth[2]+'px'}">

					</text><text :style="{width:tdWidth[3]+'px'}">
						{{inPurSaleQty}}
					</text><text :style="{width:tdWidth[4]+'px'}">
						{{inPurSaleAmount}}
					</text><text :style="{width:tdWidth[5]+'px'}">
						{{outPurQty}}
					</text><text :style="{width:tdWidth[6]+'px'}">
						{{outPurAmount}}
					</text><text :style="{width:tdWidth[7]+'px'}">
						{{cyQty}}
					</text><text :style="{width:tdWidth[8]+'px'}">
						{{cyAmount}}
					</text><text :style="{width:tdWidth[9]+'px'}">
						{{inGetQty}}
					</text>
					<text :style="{width:tdWidth[10]+'px'}">
						{{ouGetQty}}
					</text>
				</view>
			</view>
			<view class="orderLookAllList" :style="{height: orderListHeight + 'px'}" v-show="!isList">
				<view class="orderLookItem" v-for="(item,index) in orderList" :style="{ display:(nowRote === index) ? 'table':'block'}"
				 :key="index" @tap="lookMore(index)">
					<text>{{index+1}}</text>
					<text>{{isClient?'客户':'供应商'}}编号:{{item.ClientCode}}</text>
					<text>{{isClient?'客户':'供应商'}}:{{item.ClientName}}</text>
					<text>{{isClient?"出库数量":"进货数量"}}:{{item.real_qty}}</text>
					<text>{{isClient?"出库金额":"进货金额"}}:{{item.real_Amount}}</text>
					<text>退货数量:{{item.return_qty}}</text>
					<text>退货金额:{{item.return_Amount}}</text>
					<text>差异数量:{{item.Qty}}</text>
					<text>差异金额:{{item.Amount}}</text>
					<text>{{isClient?"销售数(未审)":"进货数(未审)"}}:{{item.real_qty2}}</text>
					<text>退货数(未审):{{item.return_qty2}}</text>
					<!-- <button class="lookMoreInfo" :style="{ transform :(nowRote == index)  ? 'rotate(180deg)':'rotate( 0deg)'}"></button> -->
					<button class="lookMoreInfo"  >
						{{nowRote == index?'收起':'展开'}}
					</button>
				</view>
			</view>
		</view>
		<view class="cu-modal" :class="showChange?'show':'hide'">
			<view class="cu-dialog">
				<view class="cu-bar bg-white justify-end">
					<view class="content">设置表格列宽度</view>
					<view class="action" @tap="hideChaneg">
						<text class="cuIcon-close text-red"></text>
					</view>
				</view>
				<view class="padding-xl">
					<view class="padding-xl-item">
						<text>
							序号
						</text>
						<input v-model="tdWidthList[0]" />
					</view>
					<view class="padding-xl-item">
						<text>客户编号:</text>
						<input v-model="tdWidthList[1]" />
					</view>
					<view class="padding-xl-item">
						<text>客户</text>
						<input v-model="tdWidthList[2]" />
					</view>
					<view class="padding-xl-item">
						<text>
							{{isClient?"出库数量":"进货数量"}}
						</text>
						<input v-model="tdWidthList[3]" />
					</view>
					<view class="padding-xl-item">
						<text>
							{{isClient?"出库金额":"进货金额"}}
						</text>
						<input v-model="tdWidthList[4]" />
					</view>
					<view class="padding-xl-item">
						<text>
							退货数量:
						</text>
						<input v-model="tdWidthList[5]" />
					</view>
					<view class="padding-xl-item">
						<text>
							退货金额
						</text>
						<input v-model="tdWidthList[6]" />
					</view>
					<view class="padding-xl-item">
						<text>
							差异数量
						</text>
						<input v-model="tdWidthList[7]" />
					</view>
					<view class="padding-xl-item">
						<text>
							差异金额
						</text>
						<input v-model="tdWidthList[8]" />
					</view>
					<view class="padding-xl-item">
						<text>
							{{isClient?"销售数(未审)":"进货数(未审)"}}
						</text>
						<input v-model="tdWidthList[9]" />
					</view>
					<view class="padding-xl-item">
						<text>
							退货数(未审)
						</text>
						<input v-model="tdWidthList[10]" />
					</view>
				</view>
				<view class="cu-bar bg-white justify-end">
					<view class="action">
						<button class="cu-btn bg-grey float-left" @tap="hideChaneg">取消</button>
						<button class="cu-btn stop margin-left" @tap="sureSetting">确定</button>
					</view>
				</view>
			</view>
		</view>
	</view>

</template>
<script>
	import * as Api from '@/syApis/syBb/apis.js'
	export default {
		computed: {
			tdAllWidth() {
				var tdAllWidth = 0;
				this.tdWidth.forEach(item => {
					tdAllWidth += parseFloat(item);
				});
				tdAllWidth += this.tdWidth.length - 1;
				return tdAllWidth;
			}
		},
		watch: {
			//统计数量
			orderList(oldval, newval) {
				var inPurSaleQty = 0;
				var inPurSaleAmount = 0
				var outPurQty = 0;
				var outPurAmount = 0;
				var inGetQty = 0;
				var ouGetQty = 0;
				var cyQty = 0;
				var cyAmount = 0;
				var _this = this;
				this.orderList.forEach(item => {
					inPurSaleQty += item.real_qty;
					inPurSaleAmount += item.real_Amount;
					outPurQty += item.return_qty;
					outPurAmount += item.return_Amount;
					inGetQty += item.real_qty2;
					ouGetQty += item.return_qty2;
					cyQty += item.Qty;
					cyAmount += item.Amount;
				});
				this.inPurSaleQty = inPurSaleQty;
				this.inPurSaleAmount = inPurSaleAmount;
				this.outPurQty = outPurQty;
				this.outPurAmount = outPurAmount;
				this.inGetQty = inGetQty;
				this.ouGetQty = ouGetQty;
				this.cyQty = cyQty;
				this.cyAmount = cyAmount;
			}
		},
		onShow() {
			var $this = this;
			uni.getSystemInfo({
				success(res) {
					$this.wrapperHeight = res.windowHeight;
					$this.containerHeight = res.windowHeight - 50 ;
					$this.orderListHeight = res.windowHeight - 50;
					$this.orderLiHeight = res.windowHeight - 50 - 80;
				}
				
			});
			this.$eventHub.$off("fire");
		},
		onLoad(options) {
			//草稿
			if (options.type == 0) {
				this.isClient = false;
				uni.setNavigationBarTitle({
					title: "供应商采购汇总"
				})
				this.curstomName = "全部供应商"
			}
			//经营历程
			else {
				this.isClient = true;
				uni.setNavigationBarTitle({
					title: "客户销售汇总"
				})
				this.curstomName = "全部客户"
			}
			// 获取表格框的宽度
			let tbWidList = uni.getStorageSync("curstomWidList", "");
			// console.log(tbWidList);
			if (tbWidList != "") {
				this.tdWidthList = JSON.parse(tbWidList);
				this.tdWidth = JSON.parse(tbWidList);
			}
			let date = new Date();
			this.getTime();
			this.getCgOrder();
			
		},
		methods: {
			getTime() {
				let yyyy = new Date().getFullYear();
				let mm = (new Date().getMonth() + 1)< 10 ? '0' + (new Date().getMonth() + 1) : (new Date().getMonth() + 1);
				let dd = new Date().getDate() < 10 ? '0' + new Date().getDate() : new Date().getDate();
				this.startTime = yyyy + '-' + mm + '-' + dd;
				this.endTime = yyyy + '-' + mm + '-' + dd;
			},
			AddLissten(){
				var _this = this;
				this.$eventHub.$on('fire', function(data) {
					_this.startTime = data.StartDate;
					_this.EndDate = data.EndDate;
					_this.curstomName = data.ClientName == "" ? (_this.isClient? "全部客户":"全部供应商") : data.ClientName;
				
					_this.getCgOrder(data);
					_this.$eventHub.$off("fire");
				});
			},
			paixu1(selectIndex) {
				var len = this.orderList.length;
				var arr = this.orderList;
				console.log(selectIndex)
				switch (selectIndex) {
					case 1:
						if (this.paixu01 == false) {
							this.paixu01 = true
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].real_qty > arr[j + 1].real_qty) { //相邻元素两两对比
										var temp = arr[j + 1];
										//元素交换
										arr[j + 1] = arr[j];
										arr[j] = temp;
									}
								}
							}
						} else {
							this.paixu01 = false
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].real_qty < arr[j + 1].real_qty) { //相邻元素两两对比
										var temp = arr[j];
										//元素交换
										arr[j] = arr[j + 1];
										arr[j + 1] = temp;
									}
								}
							}
						}
						return arr;
						break;

					case 2:
						if (this.paixu02 == false) {
							this.paixu02 = true
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].real_Amount > arr[j + 1].real_Amount) { //相邻元素两两对比
										var temp = arr[j + 1];
										//元素交换
										arr[j + 1] = arr[j];
										arr[j] = temp;
									}
								}
							}
						} else {
							this.paixu02 = false
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].real_Amount < arr[j + 1].real_Amount) { //相邻元素两两对比
										var temp = arr[j];
										//元素交换
										arr[j] = arr[j + 1];
										arr[j + 1] = temp;
									}
								}
							}
						}
						return arr;
						break;

					case 3:
						if (this.paixu03 == false) {
							this.paixu03 = true
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].return_qty > arr[j + 1].return_qty) { //相邻元素两两对比
										var temp = arr[j + 1];
										//元素交换
										arr[j + 1] = arr[j];
										arr[j] = temp;
									}
								}
							}
						} else {
							this.paixu03 = false
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].return_qty < arr[j + 1].return_qty) { //相邻元素两两对比
										var temp = arr[j];
										//元素交换
										arr[j] = arr[j + 1];
										arr[j + 1] = temp;
									}
								}
							}
						}
						return arr;
						break;

					case 4:
						if (this.paixu04 == false) {
							this.paixu04 = true
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].return_Amount > arr[j + 1].return_Amount) { //相邻元素两两对比
										var temp = arr[j + 1];
										//元素交换
										arr[j + 1] = arr[j];
										arr[j] = temp;
									}
								}
							}
						} else {
							this.paixu04 = false
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].return_Amount < arr[j + 1].return_Amount) { //相邻元素两两对比
										var temp = arr[j];
										//元素交换
										arr[j] = arr[j + 1];
										arr[j + 1] = temp;
									}
								}
							}
						}
						return arr;
						break;

					case 5:
						if (this.paixu05 == false) {
							this.paixu05 = true
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].Qty > arr[j + 1].Qty) { //相邻元素两两对比
										var temp = arr[j + 1];
										//元素交换
										arr[j + 1] = arr[j];
										arr[j] = temp;
									}
								}
							}
						} else {
							this.paixu05 = false
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].Qty < arr[j + 1].Qty) { //相邻元素两两对比
										var temp = arr[j];
										//元素交换
										arr[j] = arr[j + 1];
										arr[j + 1] = temp;
									}
								}
							}
						}
						return arr;
						break;

					case 6:
						if (this.paixu06 == false) {
							this.paixu06 = true
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].Amount > arr[j + 1].Amount) { //相邻元素两两对比
										var temp = arr[j + 1];
										//元素交换
										arr[j + 1] = arr[j];
										arr[j] = temp;
									}
								}
							}
						} else {
							this.paixu06 = false
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].Amount < arr[j + 1].Amount) { //相邻元素两两对比
										var temp = arr[j];
										//元素交换
										arr[j] = arr[j + 1];
										arr[j + 1] = temp;
									}
								}
							}
						}
						return arr;
						break;

					case 7:
						if (this.paixu07 == false) {
							this.paixu07 = true
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].real_qty2 > arr[j + 1].real_qty2) { //相邻元素两两对比
										var temp = arr[j + 1];
										//元素交换
										arr[j + 1] = arr[j];
										arr[j] = temp;
									}
								}
							}
						} else {
							this.paixu07 = false
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].real_qty2 < arr[j + 1].real_qty2) { //相邻元素两两对比
										var temp = arr[j];
										//元素交换
										arr[j] = arr[j + 1];
										arr[j + 1] = temp;
									}
								}
							}
						}
						return arr;
						break;

					case 8:
						if (this.paixu08 == false) {
							this.paixu08 = true
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].return_qty2 > arr[j + 1].return_qty2) { //相邻元素两两对比
										var temp = arr[j + 1];
										//元素交换
										arr[j + 1] = arr[j];
										arr[j] = temp;
									}
								}
							}
						} else {
							this.paixu08 = false
							for (var i = 0; i < len; i++) {
								for (var j = 0; j < len - 1 - i; j++) {
									if (arr[j].return_qty2 < arr[j + 1].return_qty2) { //相邻元素两两对比
										var temp = arr[j];
										//元素交换
										arr[j] = arr[j + 1];
										arr[j + 1] = temp;
									}
								}
							}
						}
						return arr;
						break;
				}
			},
			//修改宽度
			changeWidth() {
				this.showChange = true;
			},
			// hideChaneg() {
			// 	this.showChange = false;
			// },
			//返回上一页
			back() {
				uni.navigateBack({
					delta: 1
				})
			},
			//跳转到筛选条件页
			filter() {
				
				console.log("----");
				let type = this.isClient ? "1" : "0"
				uni.navigateTo({
					url: './curstomOrderFilter?type=' + type,

				})
			},
			// #ifndef MP
			onNavigationBarButtonTap(e) {
				const index = e.index;
				this.AddLissten();
				if (index === 0) {
					let type = this.isClient ? "1" : "0"
					uni.navigateTo({
						url: './curstomOrderFilter?type=' + type,
					
					})
				}else{
					this.changeListAl();
				}
			},
			hideChaneg() {
				this.showChange = false;
				let tempList = [];
				this.tdWidth.forEach((item,index)=>{
					tempList.push(item);
				})
				this.tdWidthList = tempList;
			},
			sureSetting() {
				let tempList = [];
				this.tdWidthList.forEach((item,index)=>{
					tempList.push(item);
				})
				this.tdWidth = tempList;
				this.showChange = false;
				uni.setStorageSync("curstomWidList",JSON.stringify(tempList));
			},
			// #endif
			//获取汇总数据
			getCgOrder: function(filter) {
				let data = {};
				if (filter == undefined) {
					data = {
						StartDate: this.startTime,
						EndDate: this.endTime
					}
				} else {
					data = filter;
				}
				var _this = this;
				if (this.isClient) {
					Api.GetCustomSale(data, function(res) {
						if (res.state) {
							if (res.data.ErrorMsg == "获取登录信息失败") {

							} else if (res.data.ErrorMsg != "") {
								Api.showTip(res.data.ErrorMsg);
							} else {
								if(res.data.ResultMsg.length==0){
									Api.showTip("查无数据");
								}
								_this.orderList = _this.setGetTwoFloat(res.data.ResultMsg);
							}
						} else {
							Api.showTip("服务器开小差了");
						}
					});
				} else {
					Api.GetSupplierPurchase(data, function(res) {
						if (res.state) {
							if (res.data.ErrorMsg == "获取登录信息失败") {

							} else if (res.data.ErrorMsg != "") {
								Api.showTip(res.data.ErrorMsg);
							} else {
								_this.orderList = _this.setGetTwoFloat(res.data.ResultMsg);
							}
						} else {
							Api.showTip("服务器开小差了");
						}
					});
				}
			},
			//将数额保留两位小数
			setGetTwoFloat(arr) {
				arr.forEach((item, index) => {
					arr[index].real_qty = Api.setTwoFloat(item.real_qty);
					arr[index].real_Amount = Api.setTwoFloat(item.real_Amount);
					arr[index].return_qty = Api.setTwoFloat(item.return_qty);
					arr[index].real_qty2 = Api.setTwoFloat(item.real_qty2);
					arr[index].real_qty = Api.setTwoFloat(item.real_qty);
					arr[index].return_qty2 = Api.setTwoFloat(item.return_qty2);
					arr[index].Qty = Api.setTwoFloat(item.Qty);
					arr[index].Amount = Api.setTwoFloat(item.Amount);
					arr[index].return_Amount = Api.setTwoFloat(item.return_Amount);
				});
				return arr;
			},
			lookMore: function(index) {
				this.nowRote = this.nowRote == index ? "-1" : index;
			},
			changeListAl: function() {
				this.isList = !this.isList;
			},
			
		},

		data() {
			return {
				paixu01: false,
				paixu02: false,
				paixu03: false,
				paixu04: false,
				paixu05: false,
				paixu06: false,
				paixu07: false,
				paixu08: false,
				showChange: false,
				orderList: [],
				containerHeight: 100,
				wrapperHeight: 600,
				orderListHeight: 100,
				orderLiHeight: 100,
				isList: false,
				startTime: "",
				endTime: "",
				curstomName: "全部客户",
				//订单页标题
				OrderTitle: "",
				//是否供应商销售汇总
				isClient: true,
				nowRote: -1,
				//进货/销售数量总计
				inPurSaleQty: 0,
				//进货/销售金额总计
				inPurSaleAmount: 0,
				//退货数量总计
				outPurQty: 0,
				//退货金额总计
				outPurAmount: 0,
				//进货数总计
				inGetQty: 0,
				//退货数总计
				ouGetQty: 0,
				//差异数
				cyQty: 0,
				//差异金额
				cyAmount: 0,
				//td宽度列表
				tdWidth: [50, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125],
				//设置表头宽度临时列表
				tdWidthList: [50, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125],
				//tb表头
				tdHeaderList: [{
						name: "序号"
					},
					{
						name: "客户编号"
					}, {
						name: "客户"
					}, {
						name: "出库数量"
					}, {
						name: "出库金额"
					}, {
						name: "退货数量"
					}, {
						name: "退货金额"
					}, {
						name: "差异数量"
					}, {
						name: "差异金额"
					}, {
						name: "{{isClient?'销售数(未审)':'进货数(未审)'}}:{{item.real_qty2}}"
					}, {
						name: "退货数(未审)"
					}
				]
			}
		}
	}
</script>

<style lang="scss">
	@import url('../../style/changecolum.scss');
	@import '@/static/bbCss/bb.scss';
	// /*图标的大小*/
	// $iconWidth:20px;
	// $iconHeight:20px;
	// $iconBackSize:20px;
	// $bb-bg-color:rgba(124, 170, 216, 1);
	
	// .title-padding {
	// 	height: var(--status-bar-height);
	// 	background: $bb-bg-color;
	// 	box-sizing: content-box;
	// }
	
	// page {
	// 	width: 100%;
	// 	height: 100%;
	// 	padding-bottom: 0px;
	// }
	
	// .wrapper {
	// 	width: 100%;
	// 	height: 100%;
	// 	display: flex;
	// 	flex-direction: column;
	// 	overflow: hidden;
	// }
	
	// button::after {
	// 	border: none;
	// 	padding: 0px;
	// }
	
	// .sureBt1 {
	// 	width: 100%;
	// 	height: 50px;
	// 	text-align: center;
	// 	position: absolute;
	// 	bottom: 0px;
	// 	z-index: 999;
	
	// 	.qd-btn {
	// 		position: fixed;
	// 		width: 90%;
	// 		background: #FFFFFF;
	
	// 		button {
	// 			width: 100px;
	// 			height: 40px;
	// 			margin-top: 5px;
	// 			line-height: 40px;
	// 			font-size: 12px;
	// 			float: right;
	// 			background: #007AFF;
	// 			color: #FFF;
	// 			margin-right: 10px;
	// 		}
	// 	}
	
	// }
	
	// .headerGd {
	// 	width: 100%;
	// 	height: 100upx;
	// 	line-height: 100upx;
	// 	background: $bb-bg-color;
	// 	display: table;
	
	// 	.header {
	// 		position: relative;
	// 		text-align: center;
	// 		font-size: 16px;
	// 		color: #FFF;
	
	// 		.back {
	// 			width: $iconWidth;
	// 			height: $iconHeight;
	// 			background: url(../../static/back.png) no-repeat;
	// 			position: absolute;
	// 			left: 10px;
	// 			top: 15px;
	// 			background-size: $iconBackSize;
	// 		}
	
	// 		.filter {
	// 			width: $iconWidth;
	// 			height: $iconHeight;
	// 			position: absolute;
	// 			right: 10px;
	// 			top: 15px;
	// 			background: url(../../static/cg/filter.png);
	// 		}
	// 	}
	// }
	
	// .container {
	// 	font-size: 14px;
	
	// 	.curstom {
	// 		width: 100%;
	// 		height: 50px;
	// 		line-height: 50px;
	// 		display: flex;
	// 		padding-left: 10px;
	// 		padding-right: 10px;
	// 		box-sizing: border-box;
	// 		background: rgba(124, 170, 216, 1);
	// 		box-sizing: border-box;
	// 		color: #FFF;
	
	// 		.curstomName {
	// 			flex: 1;
	// 			text-align: center;
	// 		}
	
	// 		.filterTime {
	// 			flex: 4;
	// 			text-align: center;
	// 			// display: flex;
	// 			// flex-direction: column;
	// 			white-space: nowrap;
	// 			text-overflow: ellipsis;
	// 			overflow: hidden;
	// 			text {
	// 				// flex: 1;
	// 				line-height: 25px;
	// 				height: 25px;
	// 				display:block ;
	// 				white-space: nowrap;
	// 				text-overflow: ellipsis;
	// 				overflow: hidden;
	// 				box-sizing: border-box;
	// 				padding-left: 2px;
	// 				padding-bottom: 2px;
	// 				text-align: left;
	// 			}
	// 		}
	// 		.filterTime:last-child{
	// 			flex: 2;
	// 		}
	
	// 		.changeList {
	// 			width: 30px;
	// 			height: 30px;
	// 			background: url(../../static/changeIcon.png) no-repeat;
	// 			background-size: 100%;
	// 			margin-top: 15px;
	// 		}
	// 	}
	
	// 	//表格单据
	// 	.orderList {
	// 		width: 100%;
	// 		overflow: auto;
	// 		box-sizing: border-box;
	
	// 		text {
	// 			float: left;
	// 			text-align: center;
	// 			box-sizing: border-box;
	// 			height: 40px;
	// 			line-height: 40px;
	// 			border-right: 1px solid #CCC;
	// 			white-space: nowrap;
	// 			text-overflow: ellipsis;
	// 			overflow: hidden;
	
	// 			&:last-child {
	// 				border: none;
	// 			}
	// 		}
	
	// 		.orderNav {
	// 			height: 40px;
	// 			line-height: 40px;
	
	// 			box-sizing: border-box;
	// 			overflow: hidden;
	// 			border-top: 1px solid #CCC;
	// 			border-left: 1px solid #FFF;
	// 			background: #FFF;
	// 		}
	
	// 		.orderLi {
	
	// 			background: #ebebeb;
	// 			overflow: auto;
	
	// 			.orderItem {
	// 				height: 40px;
	// 				line-height: 40px;
	// 				width: 100%;
	// 				border: 1px solid #ebebeb;
	// 				box-sizing: border-box;
	// 				display: table;
	// 				border-bottom: 1px solid #CCCCCC;
	
	// 				view {
	// 					display: inline-block;
	// 					height: 100%;
	// 					line-height: 40px;
	// 					float: left;
	// 					text-align: center;
	// 					border-right: 1px solid #CCC;
	// 					box-sizing: border-box;
	// 					padding-top: 5upx;
	// 					padding-bottom: 5upx;
	// 					white-space: nowrap;
	// 					text-overflow: ellipsis;
	// 					overflow: hidden;
	
	// 					image {
	// 						width: 60px;
	// 						margin: auto;
	// 						display: table;
	// 					}
	
	// 					&:last-child {
	// 						border: none;
	// 					}
	
	// 				}
	// 			}
	// 		}
	
	// 		.allPrice {
	// 			@extend .orderNav;
	// 			background: rgba(124, 170, 216, 1);
	// 			color: #FFF;
	// 		}
	// 	}
	
	// 	//列表单据
	// 	.orderLookAllList {
	// 		width: 100%;
	// 		background: #ebebeb;
	// 		box-sizing: border-box;
	// 		padding: 30upx;
	// 		box-sizing: border-box;
	// 		overflow: auto;
	
	// 		.orderLookItem {
	// 			width: 100%;
	// 			height: 220upx;
	// 			overflow: hidden;
	// 			position: relative;
	// 			border-radius: 20upx;
	// 			background: #FFF;
	// 			box-sizing: border-box;
	// 			padding-left: 30upx;
	// 			padding-right: 100upx;
	// 			padding-top: 5upx;
	// 			padding-bottom: 5upx;
	// 			margin-bottom: 20upx;
	// 		}
	
	// 		.lookMoreInfo {
	// 			width: $iconWidth;
	// 			height: $iconHeight;
	// 			background: url(../../static/pull.png) no-repeat;
	// 			position: absolute;
	// 			bottom: 10upx;
	// 			right: 10upx;
	// 			padding: 0upx;
	// 			background-size: 100% 100%;
	// 			transition: height 2s;
	// 		}
	
	// 		text {
	// 			display: block;
	// 			font-size: 30upx;
	
	// 			&:nth-child(1) {
	// 				position: absolute;
	// 				top: 10upx;
	// 				right: 10upx;
	// 				width: $iconWidth;
	// 				height: $iconHeight;
	// 				border-radius: 10upx;
	// 				text-align: center;
	// 				display: table;
	// 				color: #000;
	// 				line-height: $iconHeight;
	// 				padding: 5upx;
	// 			}
	
	// 			&:nth-child(n+2) {
	// 				height: 55upx;
	// 				line-height: 55upx;
	// 				display: table;
	// 			}
	// 		}
	
	// 		.lookMoreClass {
	// 			display: table;
	
	// 		}
	
	// 		.openAndClose {
	// 			transform: rotate(180deg);
	// 		}
	// 	}
	
	// }
	
	// //查看大图
	// .lookBig {
	// 	position: fixed;
	// 	width: 100%;
	// 	height: 100%;
	// 	overflow: auto;
	// 	top: 0;
	// 	left: 0;
	// 	background: rgba(0, 0, 0, .3);
	
	// 	image {
	// 		width: 70%;
	// 		margin: auto;
	// 		margin-top: 10%;
	// 	}
	// }
	
	// .padding-xl {
	// 	overflow: auto;
	// 	max-height: 400px;
	// }
	
	// .padding-xl-item {
	// 	display: flex;
	// }
	
	// .padding-xl-item text {
	// 	min-width: 70px;
	// 	height: 40px;
	// 	line-height: 40px;
	// 	text-align: right;
	// 	padding-right: 10px;
	// 	box-sizing: border-box;
	// 	font-size: 15px;
	// }
	
	// .padding-xl-item input {
	// 	flex: 1;
	// 	border: 1px solid #CCC;
	// 	height: 30px;
	// 	line-height: 30px;
	// 	margin-top: 5px;
	// }
	
	// .stop {
	// 	padding-left: 12px;
	// 	padding-right: 12px;
	// 	font-size: 14px;
	// 	background: rgba(124, 170, 216, 1);
	// 	color: #FFF;
	// 	box-sizing: border-box;
	// 	margin-left: 40px;
	// }
</style>
